/********************************************************************
Name: Table A4: Effect of Dem Sheriff on Detainer Compliance Rate
Author: Dan Thompson
Date: August 2019
Notes:
********************************************************************/

* Set the working directory 
gl root = "$sanctuary_root"
gl root = "YOUR_WORKING_DIRECTORY"

* Bring in the panel data
use "$root/data/panel analysis data.dta", clear
	
* Column 1
reghdfe share_detained_sheriff dem, a(county_id year) vce(clust county_id)

* Column 2
reghdfe share_detained_sheriff dem, a(county_id i.year##i.region_id) vce(clust county_id)

* Column 3
reghdfe share_detained_sheriff dem, a(county_id i.year##i.pop_quartile) vce(clust county_id)

* Column 4
reghdfe share_detained_sheriff dem, a(county_id i.year##i.pop_quartile##i.region_id) vce(clust county_id)

* Column 5
reghdfe share_detained_sheriff dem, a(year county_id##c.year) vce(clust county_id)

* Column 6
reghdfe share_detained_sheriff dem, a(i.year##i.region_id county_id##c.year) vce(clust county_id)

* Column 7
reghdfe share_detained_sheriff dem, a(i.year##i.pop_quartile county_id##c.year) vce(clust county_id)

* Column 8
reghdfe share_detained_sheriff dem, a(i.year##i.pop_quartile##i.region_id county_id##c.year) vce(clust county_id)

